#sdppp-popup-root {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 16px;
    background: var(--bg-color);
    align-items: stretch;
    justify-content: stretch;
    z-index: 100;
} 
.sdppp-menu-container {
    box-sizing: content-box;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    flex: 1;
}
.sdppp-menu-header {
    display: flex;
    flex-direction: row;
    gap: 10px;
    color: var(--fg-color);
    padding-bottom: 5px;
    border-bottom: 2px solid rgba(127, 127, 127, .4);
    align-items: center;
    justify-content: space-between;
}   

.sdppp-menu-header button {
    text-align: center;
    background: var(--comfy-input-bg);
    border: none;
    box-shadow: none;
}
.sdppp-menu-header button:hover {
    background-color: var(--border-color);
}
.sdppp-menu-header button.active {
    background-color: var(--primary-bg);
}
.sdppp-menu-header button.active:hover {
    background-color: var(--primary-hover-bg);
}

.sdppp-menu-content {
    gap: 10px;
    flex: 1;
    min-height: 0;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}


.sdppp-close-button {
    height: 30px;
    width: 30px;
    top: 10px;
    right: 10px;
    position: absolute;
    overflow: hidden;
}

.settings-container {
    padding: 10px;
    color: white;
}

.settings-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.settings-section label {
    text-align: left;
    padding-right: 10px;
}

.settings-section input[type="number"] {
    width: 100%;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #666;
    background: var(--comfy-input-bg);
    color: var(--fg-color);
}

.settings-section .download-button {
    width: auto;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #666;
    background: var(--comfy-input-bg);
    color: var(--fg-color);
    cursor: pointer;
    margin-right: 5px;
}

.settings-section .download-button:last-child {
    margin-right: 0;
}

.settings-section div:has(.download-button) {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
}

.settings-section p {
    grid-column: 1 / -1;
    margin: 0;
}

.settings-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.settings-control {
    display: flex;
    gap: 5px;
    align-items: center;
}

.settings-control input[type="number"] {
    width: 100%;
    min-width: 80px;
}

.settings-label {
    display: flex;
    align-items: center;
}

.sdppp-menu-workflow-edit-wrap {
    font-size: 12px;
    width: 100%;
    height: 100%;
}

.sdppp-menu-workflow-edit-wrap p {
    margin: 0;
    padding: 0;
    color: var(--descrip-text)
}

.workflow-edit-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.workflow-edit-field {
    color: var(--fg-color);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
}

.workflow-edit-field > * {
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 639px) {
    .workflow-edit-content {
        flex-wrap: wrap;
        height: 100%;
        overflow-y: hidden;
        overflow-x: scroll;
    }
    .workflow-edit-field {
        max-width: 320px;
    }
}

.workflow-edit-field-title {
    color: var(--fg-color);
    font-size: 14px;
    border-left: 4px solid rgba(127, 127, 127, .4);
    padding: 2px 2px 2px 5px;
    margin: 3px 0;
    display: inline-flex;
}

.sdppp-side-icon {
    width: 64px;
    height: 64px;
    mask-image: url("./sd-ppp-static/sdppp-icon.svg");
    mask-size: 36px;
    mask-position: center;
    mask-repeat: no-repeat;
    background-color: currentColor;
}
.sdppp-side-container {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    position: relative;
    padding-top: 32px;
}
.sdppp-side-container .sdppp-side-header {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}
.sdppp-side-container .sdppp-side-header button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}
.sdppp-photoshop-icon {
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/a/af/Adobe_Photoshop_CC_icon.svg");
}
.sdppp-premiere-icon {
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/4/40/Adobe_Premiere_Pro_CC_icon.svg");
}

/* GroupFilter component styles */
.sdppp-side-container .group-filter {
    display: flex;
    flex-wrap: wrap;
    padding: 4px 0;
}

.sdppp-side-container .group-filter-item {
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.sdppp-side-container .group-filter-item:not(:first-child) {
    margin-left: 8px;
}
/* end of GroupFilter component styles */